package yiran.onemonthcard.eventhandler;

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;
import yiran.onemonthcard.system.OneMonthCardSystem;

public class PlayerQuitListener implements Listener {
    private final OneMonthCardSystem OneMonthCardSystem;

    public PlayerQuitListener(OneMonthCardSystem OneMonthCardSystem) {
        this.OneMonthCardSystem = OneMonthCardSystem;
    }

    @EventHandler
    public void onPlayerQuit(PlayerQuitEvent event) {
        OneMonthCardSystem.handlePlayerQuit(event.getPlayer());
    }
}
